package com.lh;

import redis.clients.jedis.Jedis;

public class TestJavaRedis {
	public static void main(String[] args) {
		//连接redis
		Jedis jedis = new Jedis("192.168.168.234",8000);
		jedis.set("java","gp04" );
		jedis.lpush("hobby", "basketball","football");
		jedis.hset("java_hash", "kkk","vvv");
		String data = jedis.get("data");
		System.out.println(data);
	}
	
}
